package com.lantosec.hmrp.modules.system.vo;

import com.lantosec.hmrp.modules.system.entity.SysSmsTemplate;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 短信模板配置表(待定) VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-05-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysSmsTemplate对象", description="短信模板配置表(待定)")
public class SysSmsTemplateVO extends BaseVO<SysSmsTemplate> {
    private static final long serialVersionUID = 1L;


    public SysSmsTemplateVO(SysSmsTemplate entity){
        this.smsTemplateId = entity.getSmsTemplateId();
        this.moduleId = entity.getModuleId();
        this.smsTemplateContent = entity.getSmsTemplateContent();
    }

    @Override
    public SysSmsTemplate convertToEntity(){
        return new SysSmsTemplate(this);
    }


    @ApiModelProperty(value = "短信模板ID")
    private Integer smsTemplateId;

    @ApiModelProperty(value = "功能模块ID")
    private String moduleId;

    @ApiModelProperty(value = "短信模板内容")
    private String smsTemplateContent;


}
